package com.itheima.service;

import com.itheima.pojo.dto.AddressBookDto.AddressBookAddDto;
import com.itheima.pojo.dto.AddressBookDto.AddressBookUpdateDto;
import com.itheima.pojo.vo.addressBookVo.AddressBookByIdVo;
import com.itheima.pojo.vo.addressBookVo.GetAddressBookVo;
import com.itheima.pojo.vo.addressBookVo.GetDefaultAddressBookVo;

import java.util.List;

public interface AddressBookService {
    boolean add(AddressBookAddDto addressBook);
    boolean update(AddressBookUpdateDto addressBook);
    boolean delete(Integer []ids);
    List<GetAddressBookVo>selectAll();
    AddressBookByIdVo selectById(String id);

    GetDefaultAddressBookVo selectByIsDefault();

   GetDefaultAddressBookVo updateDef(String id);
}
